/**
 * 模拟积分记录数据
 */
export const mockPointsRecords = [
  {
    id: '1001',
    type: '数据贡献',
    title: '安瞳数据贡献',
    time: '2023-07-28 14:32',
    amount: '15',
    isIncome: true,
    status: 'success',
    detail: {
      '贡献码': 'AT20230728001',
      '贡献Hash': '0x7d5a99f603f231d53a4f39d1786cff41ea5a132c18df63c56de36e3ec5737fa8'
    }
  },
  {
    id: '1002',
    type: '兑换支出',
    title: 'HDFS兑换USDT',
    time: '2023-07-26 09:15',
    amount: '50',
    isIncome: false,
    status: 'success',
    detail: {
      '兑换比例': '1:0.2',
      '兑换数量': '50 HDFS → 10 USDT'
    }
  },
  {
    id: '1003',
    type: '数据贡献',
    title: '安瞳数据贡献',
    time: '2023-07-25 16:47',
    amount: '12',
    isIncome: true,
    status: 'success',
    detail: {
      '贡献码': 'AT20230725002',
      '贡献Hash': '0x9c5a99f603f231d53a4f39d1786cff41ea5a132c18df63c56de36e3ec5737bc3'
    }
  },
  {
    id: '1004',
    type: '任务奖励',
    title: '每日签到',
    time: '2023-07-24 08:30',
    amount: '5',
    isIncome: true,
    status: 'success'
  },
  {
    id: '1005',
    type: '兑换支出',
    title: 'HDFS兑换BTC',
    time: '2023-07-22 11:20',
    amount: '100',
    isIncome: false,
    status: 'success',
    detail: {
      '兑换比例': '1:0.00001',
      '兑换数量': '100 HDFS → 0.001 BTC'
    }
  },
  {
    id: '1006',
    type: '数据贡献',
    title: '安瞳数据贡献',
    time: '2023-07-20 15:10',
    amount: '18',
    isIncome: true,
    status: 'success',
    detail: {
      '贡献码': 'AT20230720003',
      '贡献Hash': '0x3a28927c8d83d42f2338877d3e4ec6a0c142c3fb9d42b2f1d32c8feb1c826fa1'
    }
  },
  {
    id: '1007',
    type: '活动奖励',
    title: '新人注册奖励',
    time: '2023-07-18 10:00',
    amount: '50',
    isIncome: true,
    status: 'success',
    remark: '欢迎加入BTD生态'
  },
  {
    id: '1008',
    type: '兑换支出',
    title: 'HDFS兑换ETH',
    time: '2023-07-15 14:25',
    amount: '200',
    isIncome: false,
    status: 'success',
    detail: {
      '兑换比例': '1:0.0001',
      '兑换数量': '200 HDFS → 0.02 ETH'
    }
  },
  {
    id: '1009',
    type: '数据贡献',
    title: '安瞳数据贡献',
    time: '2023-07-12 09:40',
    amount: '20',
    isIncome: true,
    status: 'success',
    detail: {
      '贡献码': 'AT20230712004',
      '贡献Hash': '0x5b3a99f603f231d53a4f39d1786cff41ea5a132c18df63c56de36e3ec5737de2'
    }
  },
  {
    id: '1010',
    type: '数据贡献',
    title: '安瞳数据贡献',
    time: '2023-07-10 11:30',
    amount: '8',
    isIncome: true,
    status: 'pending',
    detail: {
      '贡献码': 'AT20230710005',
      '贡献Hash': '0x6c4b88f603f231d53a4f39d1786cff41ea5a132c18df63c56de36e3ec5737ac5'
    },
    remark: '审核中，预计24小时内完成'
  },
  {
    id: '1011',
    type: '任务奖励',
    title: '邀请好友',
    time: '2023-07-08 16:20',
    amount: '30',
    isIncome: true,
    status: 'success',
    remark: '成功邀请用户注册'
  },
  {
    id: '1012',
    type: '兑换支出',
    title: 'HDFS兑换USDT',
    time: '2023-07-05 10:15',
    amount: '75',
    isIncome: false,
    status: 'success',
    detail: {
      '兑换比例': '1:0.2',
      '兑换数量': '75 HDFS → 15 USDT'
    }
  }
];

/**
 * 模拟提交数据贡献
 * @param {Object} data - 贡献数据
 * @returns {Promise<Object>} - 返回结果
 */
export const mockSubmitContribution = (data) => {
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve({
        code: 0,
        message: '提交成功',
        data: {
          id: Date.now().toString(),
          estimatedTime: '24小时'
        }
      });
    }, 1000);
  });
};